package com.unknowpupil.design.builder;

/**
 * @Description: <br/>
 * <p>
 *
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/24 20:30
 * @Classname: AirShip
 * @Version: 1.0
 */
public class AirShip {
    private Engine engine;
    private EscapeTower escapeTower;
    private OrbitalModule orbitalModule;

    public void launch(){
        System.out.println("发射");
    }

    public AirShip(Engine engine, EscapeTower escapeTower, OrbitalModule orbitalModule) {
        this.engine = engine;
        this.escapeTower = escapeTower;
        this.orbitalModule = orbitalModule;
    }

    public AirShip() {
    }

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public EscapeTower getEscapeTower() {
        return escapeTower;
    }

    public void setEscapeTower(EscapeTower escapeTower) {
        this.escapeTower = escapeTower;
    }

    public OrbitalModule getOrbitalModule() {
        return orbitalModule;
    }

    public void setOrbitalModule(OrbitalModule orbitalModule) {
        this.orbitalModule = orbitalModule;
    }

    @Override
    public String toString() {
        return "AirShip{" +
                "engine=" + engine +
                ", escapeTower=" + escapeTower +
                ", orbitalModule=" + orbitalModule +
                '}';
    }
}
